<?php if( $text_module->getStatusId() == MyConstants::STATUS_APPROVED): ?>
    <?php echo link_to(__('disable'), 'textmodule/disable?id=' . $text_module->getId()) ?>
<?php else: ?>
    <?php echo link_to(__('enable'), 'textmodule/enable?id=' . $text_module->getId()) ?>
<?php endif; ?>